package com.neu.service;

import com.neu.pojo.Emp;
import com.neu.pojo.EmpQueryParam;
import com.neu.pojo.LoginInfo;
import com.neu.pojo.PageResult;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {

    //public PageResult<Emp> page(Integer page, Integer pageSize, String name, Integer gender, LocalDate begin, LocalDate end);
    public PageResult<Emp> page(EmpQueryParam empQueryParam);
    //新增员工
    void save(Emp emp);
    //批量删除员工信息
    void delete(List<Integer> ids);
    //根据ID查询员工
    Emp getInfo(Integer id);

    void update(Emp emp);

    LoginInfo login(Emp emp);

    //Emp login(Emp emp);

    List<Emp> findAll();
}
